package net.zoneland.knowledge.service;

import java.util.List;

import net.zoneland.knowledge.enums.VisitTypeEnum;
import net.zoneland.knowledge.model.EsQuestion;
import net.zoneland.knowledge.model.LoginUserPojo;
import net.zoneland.knowledge.model.QaBank;
import net.zoneland.knowledge.model.QaBankWithBLOBs;

/**
 * .
 *
 * @author: bcc
 * 2021/6/9
 */
public interface QaBankService {
    List<QaBankWithBLOBs> queryByPiidAndBankId(String piid, String bankId);

    /**
     * 从数据库加载附件及图片信息
     * @param esQuestion
     * @param visitTypeEnum
     */
    void loadMoreInfoFromDb(EsQuestion esQuestion, VisitTypeEnum visitTypeEnum);


    /**
     * 通过科目查找问题.
     * @param qaBank
     * @return
     */
    List<QaBankWithBLOBs> queryBySubject(final QaBank qaBank, LoginUserPojo loginUserPojo, List<String> currentUserRole);
}
